package cn.cjj.gulimall.order.feign;

import cn.cjj.common.utils.R;
import cn.cjj.gulimall.order.vo.FareVo;
import cn.cjj.gulimall.order.vo.WareSkuLockVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @author CuiJunJie
 * @create 2021/7/9-19:52
 */
@FeignClient("gulimall-ware")
public interface WareFeignService {
    @RequestMapping("/ware/wareinfo/fare/{addrId}")
    public FareVo getFare(@PathVariable("addrId") Long addrId);

    @RequestMapping("/ware/waresku/lock/order")
    public R orderLockStock(@RequestBody WareSkuLockVo wareSkuLockVo);
}
